package com.wytec.xywzxw.bean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;

@Data
@TableName(value = "access_log")
public class AccessLog {
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty(value = "id",index = 0)
    private Integer id;
    @ExcelProperty(value = "ip地址")
    private String ip;
    @ExcelProperty(value = "账号")
    private String name;
    @ExcelProperty(value = "方法名")
    private String account;
    @ExcelProperty(value = "地区")
    private String region;
    @ExcelProperty(value = "省")
    private String province;
    @ExcelProperty(value = "城市")
    private String city;
    @ExcelProperty(value = "主机")
    private String host;
    @ExcelProperty(value = "请求方式")
    private String method;
    @ExcelProperty(value = "请求路径")
    private String path;
    @ExcelProperty(value = "UA信息")
    private String agent;
    @ExcelProperty(value = "用户id")
    private Integer userId;
    @ExcelProperty(value = "请求参数")
    private String reqBody;
    @ExcelProperty(value = "相应参数")
    private String resBody;
    @ExcelProperty(value = "耗时")
    private long latency;
    @TableField(fill = FieldFill.INSERT)
    @ExcelProperty(value = "请求时间")
    private Date createTime;
}
